import request from '../request'
import globalConfig from "../config";
import {praseStrEmpty} from '@/common/utils'


export function getAllCategorys() {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.category.list}`,
        method: 'get',
        // data: params
    })
}


export function getCategoryDetail(id) {
    return request({
        url: `${globalConfig.getAPIPath()}${globalConfig.category.info}/${id}`,
        method: 'get',
    })
}


